package com.qingcloud.df.executor.process.kube;

import java.lang.ProcessHandle.Info;
import java.time.Duration;
import java.time.Instant;
import java.util.Optional;

public class KubePodProcessInfo implements Info {

  private final String podName;

  public KubePodProcessInfo(final String podname) {
    this.podName = podname;
  }

  @Override
  public Optional<String> command() {
    return Optional.of(podName);
  }

  @Override
  public Optional<String> commandLine() {
    return Optional.of(podName);
  }

  @Override
  public Optional<String[]> arguments() {
    return Optional.empty();
  }

  @Override
  public Optional<Instant> startInstant() {
    return Optional.empty();
  }

  @Override
  public Optional<Duration> totalCpuDuration() {
    return Optional.empty();
  }

  @Override
  public Optional<String> user() {
    return Optional.empty();
  }

}
